let input = `9
88 74 101 26 15 0 34 22 77`
let input_arr = input.split('\n')


let num_arr = input_arr[1].split(' ')
// function isOdd(element){
//     return element % 2 !==0
// }

let odd_arr = num_arr.filter((element)=> element % 2 !==0)
let oven_arr = num_arr.filter((element)=> element % 2 ===0)
// let odd_arr = num_arr.filter(isOdd)
console.log(`${odd_arr.length} ${oven_arr.length}`);